import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';

import { AppComponent } from './app.component';
import { NZ_I18N } from 'ng-zorro-antd/i18n';
import { zh_CN } from 'ng-zorro-antd/i18n';
import { HashLocationStrategy, LocationStrategy, registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NzModalModule } from 'ng-zorro-antd/modal';
//引入按钮模块
import { NzButtonModule } from 'ng-zorro-antd/button';
import { NzGridModule } from 'ng-zorro-antd/grid';
import { NzTableModule } from 'ng-zorro-antd/table';
import { NzMessageService } from 'ng-zorro-antd/message';
import { NzCarouselModule } from 'ng-zorro-antd/carousel';

import { NzFormModule } from 'ng-zorro-antd/form';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import { AppRoutingModule } from './app-routing.module';
import { TwounitsComponent } from './u03op40online/u03op40online.component';
import { HomeComponent } from './home/home.component';
import { FourunitsComponent } from './u03op40lineEdge/u03op40lineEdge.component';
import { PagenotfoundComponent } from './pagenotfound/pagenotfound.component';
import { AutoFocusModule } from '@delon/abc/auto-focus';
import { TwounitsBComponent } from './u02op40/u02op40.component';
import { TwounitsAComponent } from './u02op30/u02op30.component';
import { U14Component } from './U14OutBound/u14.component';


registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    U14Component,
    TwounitsComponent,
    TwounitsAComponent,
    TwounitsBComponent,
    HomeComponent,
    FourunitsComponent,
    PagenotfoundComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpClientModule,
    BrowserAnimationsModule,
    NzButtonModule,
    NzModalModule,
    NzGridModule,
    NzTableModule,
    NzCarouselModule,

    NzFormModule,
    ReactiveFormsModule,
    AppRoutingModule,
    AutoFocusModule
    // FormGroup,
    // FormBuilder,
    // Validators,
    // FormControl
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN },{ provide: LocationStrategy, useClass: HashLocationStrategy, },
    // { provide: Validators },
    // { provide: FormBuilder, useClass: FormGroup},
    // ReactiveFormsModule,
    // NzFormModule,
    NzMessageService
  ],
  bootstrap: [AppComponent,]
})
export class AppModule { }
